import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from 'typeorm';

@Entity('sys_dict_data')
export class SysDictDataEntity {
    // 将 int 类型的id转成string类型，防止前端精度缺失

    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string;

    @Column({ comment: '字典标识key' })
    dictKey: string;

    @Column({ comment: '字典项值' })
    dictVal: string;

    @Column({ comment: '字典项名称' })
    dictName: string;

    @Column({ comment: '字典项排序' })
    sort: number;

    @CreateDateColumn({ precision: 0 })
    createTime: string;

}    